using System;
using System.Collections.Generic;

namespace EMan.Server.Interface.DAL
{
  /// <summary>
  /// Base interface for a dalc, can be used in order to not declare such methods each time, if the dalc should provide these methods
  /// </summary>
  /// <typeparam name="T">The type of the business entity</typeparam>
  public interface IDalc< T > : IDisposable
  {
    IList< T > GetList();
    T Get( int id );
    bool Insert( T entity );
    bool Update( T entity );
    bool Delete( int id );
  }
}